package code.app
{
	import com.yy.base.YYSprite;
	import com.yy.mvc.view.AppContainer;
	
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.net.sendToURL;

	/**
	 *场景管理器 
	 * @author YY
	 * 
	 */
	public class AppView extends AppContainer
	{
		private static var _instance:AppView;
		public var tableLayer:YYSprite;//桌子层
		public var motionLayer:YYSprite;//动画层
		public var hallLayer:YYSprite;//大厅层
		public var topInfoLayer:YYSprite;//丁部消息条层
		public var connectLayer:YYSprite;//连接房间层
		public function AppView(xx:XX)
		{
			super();
		}
		
		public static function getInstance():AppView {
			if(!_instance) {
				_instance = new AppView(new XX());
			}
			return _instance;
		}
		
		override public function init(stage:Stage, container:Sprite):void {
			super.init(stage, container);
			hallLayer = new YYSprite();
			tableLayer = new YYSprite();
			motionLayer = new YYSprite();
			topInfoLayer = new YYSprite();
			connectLayer = new YYSprite();
			sceneLayer.addChild(tableLayer);
			sceneLayer.addChild(motionLayer);
			sceneLayer.addChild(hallLayer);
			sceneLayer.addChild(topInfoLayer);
			sceneLayer.addChild(connectLayer);
		}
	}
}
class XX {
	
}